class Person {
  constructor(name) {
    this.name = name;
  }
  say() {
    console.log(`hi, my name is ${this.name}`);
  }
  static create(name) {
    // 这儿的this不再是实例的this了
    console.log(this);
    return new Person(name);
  }
}

const cuvee = Person.create('cuvee');

cuvee.say();

class Student extends Person {
  constructor(name, number) {
    super(name);
    this.number = number;
  }
  hello() {
    this.say();
    console.log(`hi, my number is ${this.number}`);
  }
}
const s1 = new Student('cuvee', 1);
s1.hello();
